package lastfm
{
  /**
   * ...
   * @author Roman Marchenko
   */
  public class SongChooser
  {
    private var songs: Array = [new Song("Artist1", "Title1"), 
                                new Song("Artist2", "Title2"), 
                                new Song("Artist3", "Title3")];
    private var index: Number = 0;

    public function SongChooser ()
    {
    }

    public function choose (): Song
    {
      if (songs.length <= index)
      {
        return null;
      }

      return songs[index++];
    }
  }

}